package com.liuyk.commonlib.network;

import android.text.TextUtils;

/**
 * host管理
 * <p>
 * Created by liuyakui on 2020-02-13.
 */
public class HostManager {
    private static final String DEFAULT_HOST = "http://lz";

    private static HostManager INSTANCE;

    private HostManager() {

    }

    public void init() {
//        DEFAULT_HOST = CommonUtils.isDebugMode(mContext) ? DEBUG_HOST : RELEASE_HOST;
    }

    public static synchronized HostManager getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new HostManager();
        }
        return INSTANCE;
    }

    public void setHost(String host) {
    }

    public String getHost() {
        //取本地自定义的HOST
        String set_host = "";
        if (!TextUtils.isEmpty(set_host)) {
            return set_host;
        }
        return DEFAULT_HOST;
    }

}
